<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>a标签实现下载</title>
</head>
<body>
    <h1>普通下载</h1>
    <a href="./files/file1.docx">点击下载文件</a>

    <h2>强制下载</h2>
    <a href="./images/kele.jpg" download>PDF和图片强制下载</a>

    <h2>强制下载+自定义文件名</h2>
    <a href="./images/kele.jpg" download="可乐大图">点击下载高清图片</a>

    <h2>邮件链接</h2>
    <a href="mailto:14555110@qq.com">给我发邮件</a>

    <h2>电话链接</h2>
    <a href="tel:1586952">1586952</a>
</body>
</html>